<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
	<meta name="format-detection" content="telephone=no" />
	<title>首页</title>
	<link rel="stylesheet" type="text/css" href="../c/aui.css" />
	<link rel="stylesheet" type="text/css" href="../c/suxiangw.css" />
</head>
	<style>
		.aui-pull-right {
			width: 2rem;
		}

		.aui-pull-right img {
			width: 70%;
		}

		.aui-title {
			font-size: 0.75rem;
			letter-spacing: 1.5px;
		}
		#a{
			height: 100%;
			width: 100%;
			position: fixed;
			top:0;
			left: 0;
			z-index: 1;
  		background: #2A2A2A;
			opacity: 0.98;
		}
		#sx-header,#a{
			border-top-left-radius: 0.5rem;
			border-top-right-radius: 0.5rem;
		}
	</style>
	<body class="pls"  id="ml">
		<header class="aui-bar aui-bar-nav aui-border-b" id="sx-header"  tapmode>
			<div class="aui-title">0 条评论</div>
			<div class="aui-pull-right aui-btn closebtn"onclick="x()">
				<img src="../i/x.png" />
			</div>
		</header>
		<div id="a" ></div>
	</body>
	<script type="text/javascript" src="../j/api.js"></script>
	<script type="text/javascript" src="../j/jquery-3.3.1.min.js"></script>
	<script type="text/javascript">
		apiready = function() {
			// $(".closebtn").on("click",function(){
			// 	x();
			// })
			if(!api.pageParam['vid']){
				_alert('vid错误',function(ret,err){
					x();
					
				})
			}
			if(api.pageParam['num']){
				$('.aui-title').text(api.pageParam['num']+' 条评论');
			}

			api.parseTapmode();
			frame();
		}
		function x() {
			if(_win_name == 1){
			
				api.closeFrame({name:'ml'});
			}else{
				
				// 开启滑动视频
				api.sendEvent({
						name: 'ping_win',
						extra: {
								swiping_show: true,
						}
				});
			}
			api.closeFrame({name:'ping_frm'});
			api.closeFrame();
		}
		function frame(){
			var url = 'ping_frm';
			var h = $api.offset($api.byId('sx-header')).h;
			api.openFrame({
				name : url,
				url : _h_w + url + '.html',
				rect : {
					x : 0,
					y : (api.winHeight/3.5) + h,
					w : 'auto',
					h : api.winHeight - (api.winHeight/3.5) - h,
				},
				pageParam : api.pageParam,
				bgColor : 'rgba(0,0,0,0)',
				bounces:true,
				animation:{
					type:"movein",                //动画类型（详见动画类型常量）
					subType:"from_bottom",       //动画子类型（详见动画子类型常量）
					duration:100
				},
			})
		}
	</script>

</html>
